package com.input4hua.responsibility;

/**
 * 具体处理链客户端
 * @author jiahua.hu
 * @date 2019/3/30 
 */
public class HandlerClient implements Handler {
	private AbstractHandler top;

	public HandlerClient() {
		this.top = new ConcreteHandlerL1();
		ConcreteHandlerL2 l2 = new ConcreteHandlerL2();
		ConcreteHandlerL3 l3 = new ConcreteHandlerL3();
		l2.setNextHandler(l3);
		top.setNextHandler(l2);
	}


	@Override
	public String handleMessage(RequestObj requestObj) {
		return top.handleMessage(requestObj);
	}
}
